package com.upay.android.domain.payment;

import java.math.BigDecimal;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.upay.android.domain.group.GroupAccount;
import com.upay.android.domain.transaction.TransactionLine;

public class WeightedPaymentDetail extends PaymentDetail {
	
	/* ---- Constants ---- */
	private static final long serialVersionUID = 201203032116L;
	
	
	/* ---- Instance Variables ----*/
	private BigDecimal weightValue = null;

	/* ---- Constructors ---- */
	
	public WeightedPaymentDetail() {
		super();
	}
	
	public WeightedPaymentDetail(
		GroupAccount groupAccount,
		TransactionLine transactionLine,
		BigDecimal weightValue) {
		super(groupAccount, transactionLine);
		this.weightValue = weightValue;
	}


	/* ---- Business Methods ----*/
	
    public String toString() {
    	return new ToStringBuilder(this)
            .appendSuper(super.toString())
            .append("weightValue", weightValue)
            .toString();
    }

	/* ---- Getters and Setters ----*/

	public BigDecimal getWeightValue() {
		return weightValue;
	}

	public void setWeightValue(BigDecimal weightValue) {
		this.weightValue = weightValue;
	}


}
